<template>
    <div class = "header">
        城市选择
        <router-link to = "/">
        <!-- to = "/" 表示回到根目录 -->
            <div class="iconfont header-back">&#xe624;</div>
        </router-link>
    </div>
</template>

<script>
export default {
  name: 'CityHeader'
}
</script>

<style lang="stylus" scoped>
    @import '~@/assets/styles/varibles.styl'
    .header
        position relative
        overflow hidden
        height $headerHeight
        line-height $headerHeight
        text-align center
        color #fff
        background $bgColor
        font-size 16px
        .header-back
            position absolute
            top 0
            left 8px
            width 32px
            text-align center
            font-size 20px
            color #fff
</style>
